<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('条形码列表--待删除')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse none">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li class="select-time">
                                <p>搜集时间：</p>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginCollectdate]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endCollectdate]"/>
                            </li>
                            <li class="select-time">
                                <p>上传时间：</p>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginUploaddate]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endUploaddate]"/>
                            </li>
                            <li>
                                <p>来源科室：</p>
                                <input type="text" name="sourceoffice"/>
                            </li>
                            <li>
                                <p>废物类别：</p>
                                <select name="trashtype" th:with="type=${@dict.getType('')}">
                                    <option value="">所有</option>
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                </select>
                            </li>
                            <li>
                                <p>重量：</p>
                                <input type="text" name="trashweight"/>
                            </li>
                            <li>
                                <p>卫生员：</p>
                                <input type="text" name="healthper"/>
                            </li>
                            <li>
                                <p>中转站人员：</p>
                                <input type="text" name="tempper"/>
                            </li>
                            <li>
                                <p>医料桶编号：</p>
                                <input type="text" name="bucketcode"/>
                            </li>
                            <li>
                                <p>01,02,03,04：</p>
                                <input type="text" name="bcstatis"/>
                            </li>
                            <li>
                                <p>null：</p>
                                <input type="text" name="cardid"/>
                            </li>
                            <li class="select-time">
                                <p>科室时间：</p>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginDepartdate]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endDepartdate]"/>
                            </li>
                            <li class="select-time">
                                <p>暂存时间：</p>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginHolddate]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endHolddate]"/>
                            </li>
                            <li class="select-time">
                                <p>汽车时间：</p>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginCardate]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endCardate]"/>
                            </li>
                            <li>
                                <p>预警短信发送信息1发送，0未发送：</p>
                                <input type="text" name="tagsign"/>
                            </li>
                            <li class="select-time">
                                <p>报表提交时间：</p>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginBbdate]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endBbdate]"/>
                            </li>
                            <li>
                                <p>异常记录状态：</p>
                                <input type="text" name="ycstatis"/>
                            </li>
                            <li>
                                <p>异常记录处理内容：</p>
                                <input type="text" name="yccontent"/>
                            </li>
                            <li class="select-time">
                                <p>null：</p>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginYcdate]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endYcdate]"/>
                            </li>
                            <li>
                                <p>是否更新：</p>
                                <input type="text" name="update"/>
                            </li>
                            <li>
                                <p>null：</p>
                                <select name="zfstatus">
                                    <option value="">所有</option>
                                </select>
                            </li>
                            <li>
                                <p>null：</p>
                                <input type="text" name="zfcontent"/>
                            </li>
                            <li>
                                <p>上送状态：</p>
                                <select name="upstatus">
                                    <option value="">所有</option>
                                </select>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="yf:tagmanager:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="yf:tagmanager:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="yf:tagmanager:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="yf:tagmanager:export">
                    <i class="fa fa-download"></i> 导出
                 </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('yf:tagmanager:edit')}]];
        var removeFlag = [[${@permission.hasPermi('yf:tagmanager:remove')}]];
        var prefix = ctx + "yf/tagmanager";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "条形码",
                columns: [{
                    checkbox: true
                },
                {
                    field : 'codeid', 
                    title : '识别码',
                    visible: false
                },
                {
                    field : 'collectdate', 
                    title : '搜集时间'
                },
                {
                    field : 'uploaddate', 
                    title : '上传时间'
                },
                {
                    field : 'sourceoffice', 
                    title : '来源科室'
                },
                {
                    field : 'trashtype', 
                    title : '废物类别'
                },
                {
                    field : 'trashweight', 
                    title : '重量'
                },
                {
                    field : 'healthper', 
                    title : '卫生员'
                },
                {
                    field : 'tempper', 
                    title : '中转站人员'
                },
                {
                    field : 'bucketcode', 
                    title : '医料桶编号'
                },
                {
                    field : 'bcstatis', 
                    title : '01,02,03,04'
                },
                {
                    field : 'cardid', 
                    title : 'null'
                },
                {
                    field : 'departdate', 
                    title : '科室时间'
                },
                {
                    field : 'holddate', 
                    title : '暂存时间'
                },
                {
                    field : 'cardate', 
                    title : '汽车时间'
                },
                {
                    field : 'tagsign', 
                    title : '预警短信发送信息1发送，0未发送'
                },
                {
                    field : 'bbdate', 
                    title : '报表提交时间'
                },
                {
                    field : 'ycstatis', 
                    title : '异常记录状态'
                },
                {
                    field : 'yccontent', 
                    title : '异常记录处理内容'
                },
                {
                    field : 'ycdate', 
                    title : 'null'
                },
                {
                    field : 'update', 
                    title : '是否更新'
                },
                {
                    field : 'zfstatus', 
                    title : 'null'
                },
                {
                    field : 'zfcontent', 
                    title : 'null'
                },
                {
                    field : 'upstatus', 
                    title : '上送状态'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.codeid + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.codeid + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>